# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-netmiko
_pkgname=netmiko
pkgver=4.1.1
pkgrel=0
pkgdesc="Multi-vendor library to simplify Paramiko SSH connections to network devices"
url="https://github.com/ktbyers/netmiko"
arch="noarch"
license="MIT"
depends="openssh-client py3-yaml py3-paramiko py3-scp python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/ktbyers/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-netmiko" # Backwawrds compatibility
provides="py-netmiko=$pkgver-r$pkgrel" # Backwards compatibility

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
72e7ec40c1f9f7504387c62af1a650a5d67067ce6fe965ab251c183a42367867359ecb2abe1cc958cc375ee6dca71ffa4978f8ad34b21a2bfb32a9b4b9aa2475  py3-netmiko-4.1.1.tar.gz
"
